body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
  }
  body {
    /* background-image: linear-gradient(to right, #fbc2eb, #a6c1ee); */
    /* background-size: cover;
    background-position: center; */
    /* font-family: 'Georgia', serif; */
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.02em;
    text-decoration: none;
  }
  .chat-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  .messages {
    flex: 1;
    overflow-y: auto;
    padding: 80px 20px 100px; /* 留出上方和下方空间 */
  }
  
  .msg {
    padding: 10px 14px;
    margin-bottom: 10px;
    max-width: 60%;
    border-radius: 12px;
    line-height: 25px;
    clear:both
  }
  
  .msg.user {
    float:right;
    background: #aee4ff;
    align-self: flex-end;
    text-align: right;
    font-size: 16px;
  }
  
  .msg.server {
    text-align: left;
    background: #eee;
    align-self: flex-start;
    font-size: 16px;
  }
  
  .input-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    width: 80%;
    transition: top 0.5s ease;
  }
  
  .input-area.center {
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .input-area.bottom {
    bottom: 20px;
    transform: translateX(-50%);
  }
  
  input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
  }
  
  button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
  }
  .search-input {
    height: 50px;
    width: 1000px;
    padding: 8px 40px 8px 12px; /* 给右边按钮留空间 */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 999px; /* 圆角 */
    outline: none;
    box-sizing: border-box;
  }
  
  .search-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }
  